
<%--
  Created by IntelliJ IDEA.
  User: 浮生
  Date: 2021/6/10
  Time: 9:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/update" method="post" enctype="multipart/form-data">

    <input type="hidden" name="id" value="${list.id}"><br>
    书名:<input name="name" value="${list.name}"><br>
    作者: <input name="gender" value="${list.gender}"><br>

    生产日期:<input type="text" name="birthday"
                value="<fmt:formatDate value="${list.birthday}" pattern="yyyy-MM-dd"/>" /><br>

    图书照片: <td>
    <c:if test="${list.tupian !=null}">
        <img src="/photo/${list.tupian}" width=100 height=100/>
        <br/>
    </c:if>
    <input type="file"  name="pictureFile"/>
</td>
    <br>


    <input type="submit" value="修改">
</form>


</body>
</html>
